// API 基础配置
export const API_CONFIG = {
  // 基础URL，根据实际环境配置
  // BASE_URL:
  //   process.env.NODE_ENV === "prod"
  //     ? "http://www.app.sanhuijucai.com/"
  //     : "http://www.app.sanhuijucai.com/prod-api",


    BASE_URL:
    process.env.NODE_ENV === "prod"
      ? "http://www.app.sanhuijucai.com/"
      : "http://localhost:8080",

  // API 超时时间（毫秒）
  TIMEOUT: 10000,

  // API 路径
  PATHS: {
    LOGIN: "/user/login",
    LOGOUT: "/api/auth/logout",
    GET_USER_INFO: "/userInfo/userInfo",
    // 添加其他 API 路径...
  },

  AUTH: {
    LOGIN: "/user/login",
    LOGOUT: "/auth/logout",
    REFRESH_TOKEN: "/auth/refresh",
  },

  USER: {
    GET_INFO: "/userInfo/userInfo", // 添加用户信息接口路径
    UPDATE_INFO: "/user/update",
    CHANGE_PASSWORD: "/user/password",
    TRANSFER: "/userInfo/userInfo/transfer",
    EXCHANGE: "/userInfo/userInfo/exchange",
  },

  GOODS: {
    LIST: "system/shop/list",
    FEE_LIST: "/fee/feeConfig/list",
  },

  ORDER: {
    CREATE: "/system/shop/purchaseCard",
  },

  BANNER: {
    LIST: "/system/banner/list"
  }
};
